function Line(name) {
	this.name = name;
	var mData = [];
	var assocData = [];
	
	this.addStation = function(station) {
		station.line = name;
		station.position = mData.length;
		if (null != mData[mData.length - 1]) {
			mData[mData.length - 1].addNode(station);
			station.addNode(mData[mData.length - 1]);
		}
		mData[mData.length] = station;
		assocData[station.name] = station;
	};
	
	this.getStationsNumber = function() {
		return mData.length;
	};
	
	this.getStation = function(stationInd) {
		return mData[stationInd];
	};
	
	this.getStationByName = function(name) {
		return assocData[name];
	};
}